pkgname=kguiaddons
pkgver=5.37.0
pkgrel=1
pkgdesc='Addons to QtGui'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-x11extras"
makedepends="extra-cmake-modules mesa-dev clang py3-qt5 doxygen qt5-qttools-dev"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-dev $pkgname-doc"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}

sha512sums="fd727372130de4fc14bff946586da2f71e6f475a10edce438f5bb6fc9d9e2d93b4440920234a33365617bd85e61a74429038bf0d7e79150c3cbe419c4c1b9320  kguiaddons-5.37.0.tar.xz"
